package org.wordpress.android.dashboard;

import org.wordpress.android.R;
import org.wordpress.android.comments.ManageCommentActivity;

import android.app.Activity;

public class DashboardEvent {

    public enum EventType {
        COMMENT_EVENT(R.drawable.icon_comments, ManageCommentActivity.class),
        TRACKBACK_EVENT(R.drawable.icon_comments, ManageCommentActivity.class),
        PLUGIN_EVENT(R.drawable.icon_plugins, ManageCommentActivity.class),
        THEME_EVENT(R.drawable.icon_themes, ManageCommentActivity.class),
        CORE_EVENT(R.drawable.icon_core, ManageCommentActivity.class);

        private final int imageResource;
        private final Class<? extends Activity> activity;

        EventType(int resource, Class<? extends Activity> activityClass) {
            this.imageResource = resource;
            this.activity = activityClass;
        }

        public int getImageResource() { return this.imageResource; }
        public Class<? extends Activity> getActivity() { return this.activity; }
    }

    private EventType type;
    private String label;

    public DashboardEvent() {
        super();
    }

    public DashboardEvent(EventType type, String label) {
        super();
        this.type = type;
        this.label = label;
    }

    public EventType getType() {
        return this.type;
    }

    public void setType(EventType type) {
        this.type = type;
    }

    public String getLabel() {
        return this.label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return "DashboardEvent [label=" + this.label + ", type=" + this.type + "]";
    }
}
